package com.ruslan.magaz.util;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.filter.DelegatingFilterProxy;
import org.springframework.web.servlet.FrameworkServlet;

public class MySecurity extends DelegatingFilterProxy {
    
    private FrameworkServlet framework;
    
    @Override
    protected WebApplicationContext findWebApplicationContext() {
        return framework.getWebApplicationContext();
    }

    public void setFramework(FrameworkServlet framework) {
        this.framework = framework;
    }

}